$OpenBSD: patch-include_Flow_h,v 1.2 2016/07/09 12:14:28 sthen Exp $
--- include/Flow.h.orig	Mon Jun 27 20:31:18 2016
+++ include/Flow.h	Sat Jul  9 12:55:43 2016
@@ -155,7 +155,7 @@ class Flow : public GenericHashEntry {
   void checkFlowCategory();
   void setBittorrentHash(char *hash);
   bool isLowGoodput();
-  void updatePacketStats(InterarrivalStats *stats, const struct timeval *when);
+  void updatePacketStats(InterarrivalStats *stats, const struct bpf_timeval *when);
   void dumpPacketStats(lua_State* vm, bool cli2srv_direction);
   inline u_int32_t getCurrentInterArrivalTime(time_t now, bool cli2srv_direction) {
     return(1000 /* msec */ 
@@ -215,8 +215,8 @@ class Flow : public GenericHashEntry {
   void setDetectedProtocol(ndpi_protocol proto_id);
   void setJSONInfo(const char *json);
   bool isFlowPeer(char *numIP, u_int16_t vlanId);
-  void incStats(bool cli2srv_direction, u_int pkt_len,
-		u_int payload_len, const struct bpf_timeval *when);
+  void incStats(bool cli2srv_direction, u_int32_t pkt_len,
+		u_int16_t payload_len, const struct bpf_timeval *when);
   void updateActivities();
   void addFlowStats(bool cli2srv_direction, u_int in_pkts, u_int in_bytes, u_int in_goodput_bytes,
 		    u_int out_pkts, u_int out_bytes, u_int out_goodput_bytes, time_t last_seen);
